local M = {}
local m = require('utils.color')
local hl = vim.api.nvim_set_hl

M.setup = function(undo_actions)
    require("tide").setup({
        animation_duration = 30,  -- Animation duration in milliseconds
        animation_fps = 10,        -- Frames per second for animations
        hints = {
            dictionary = "ertzuipfgjklycbnm123456789",  -- Key hints for quick access(;w is used to switch window, ;s ;v ;q is used)
        },
    })

    -- tide
    hl(0, "TideBg", { bg = m.bg_cursorline })
    hl(0, "TideHeader", { fg = m.fg_1 })
    hl(0, "TideSeparator", { fg = m.fg_tide_sep })
    hl(0, "TideHotKey", {fg = m.bg_search })
    hl(0, "TideLine", { fg = m.fg_1 })
    hl(0, "TideComment", { fg = m.fg_1 })
    hl(0, "TideHover", { fg = m.fg_1  })
end

M.close = function()
    require("tide").close()
end

return M
-- EOP
